//
//  SouFunJsonData.m
//  本地测试中间层
//
//  Created by 许博 on 16/5/23.
//  Copyright © 2016年 许博. All rights reserved.
//

#import "SouFunJsonData.h"

@implementation SouFunJsonData
+ (void)dataListWithSucess:(void(^)(NSArray *arr))sucessBlock error:(void(^)())errorBlock {
    NSURL *url = [NSURL URLWithString:@"http://c.m.163.com//nc/article/list/T1348649654285/0-20.html"];
    NSData *data = [NSData dataWithContentsOfURL:url];
    NSDictionary *dict = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:nil];
    NSArray *arr = dict[@"T1348649654285"];
    sucessBlock(arr);
    
}
@end
